<?php $this->_extends('../_layouts/default_layout'); ?>

<?php $this->_block('contents'); ?>

<div class="tasks">
<?php
// user_id, group_id, account, user_name, password, ipzone, email, mobile, phone, join_day, dimission_day, birthday,
// created, updated, is_locked, register_ip, last_login, last_login_ip, login_count
// group_id, parent_id, group_name, left_value, right_value, description, has_users
// role_id rolename description user_owned group_owned
//$show_box['main_info']
$group_users = Helper_MtoM::MaekAasArr($show_box['main_info']->users,'admin::users/view','user_id','user_name');
$group_users = implode(',', Q::normalize($group_users));
?>


<h1><?php echo $show_box['title'];?></h1>
<table cellSpacing="0" cellPadding="3" align="center" border="0" width="100%">
    <tr>
        <td align="center" class='bgTitle'>ID</td>         <td align="left" ><?php echo $show_box['main_info']['group_id'];?></td></tr>
        <td align="center" class='bgTitle'>组名称</td>      <td align="left" ><?php echo $show_box['main_info']['group_name'];?></td></tr>
        <td align="center" class='bgTitle'>上级组</td>      <td align="left" ><?php echo $show_box['main_info']['parent_id'];?></td></tr>
        <td align="center" class='bgTitle'>拥有用户数</td>  <td align="left" ><?php echo $show_box['main_info']['has_users'];?></td></tr>
        <td align="center" class='bgTitle'>用户列表</td>     <td align="left" ><?php echo $group_users;?></td></tr>
        <td align="center" class='bgTitle'>操作</td>        <td align="left" ><?php echo $show_box['main_info']['group_id'];?></td></tr>
    </tr>
</table>
</div>

<?php $this->_endblock(); ?>